package com.kvn.mapper;

import com.kvn.entity.Order;
import com.kvn.vo.OrderDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by wangzhiyuan on 2018/5/31
 */
public interface OrderMapper {
    void createIfNotExistsTable();

    void truncateTable();

    Long insert(Order model);

    int delete(Long orderId);

    void dropTable();

    List<Order> selectList(@Param("orderId") Long orderId, @Param("list") List<Integer> userIdList);

    OrderDetail selectDetail(Long orderId);

    List<OrderDetail> selectDetailList(@Param("list") List<Integer> userIdList);

    List<OrderDetail> selectDetailList2(@Param("list") List<Long> orderIdList);

}
